﻿.apple-btn {
    position: relative;
    display: inline-flex;
    height: 50px;
    width: 150px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    margin: 8px;
    border: none;
    border-radius: 12px;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 125, 248, 0.3);
    text-decoration: none;
    min-width: 140px;
    overflow: hidden;
}

.apple-btn-small {
    position: relative;
    display: inline-flex;
    height: 30px;
    width: 100px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    margin: 8px;
    border: none;
    border-radius: 12px;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 125, 248, 0.3);
    text-decoration: none;
    min-width: 140px;
    overflow: hidden;
}

.apple-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 125, 248, 0.4);
    background: linear-gradient(180deg, #7BA9FF 0%, #5B89FF 100%);
}

.apple-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 125, 248, 0.4);
    background: linear-gradient(180deg, #7BA9FF 0%, #5B89FF 100%);
}

.apple-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(74, 125, 248, 0.2);
}

.apple-btn-small:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(74, 125, 248, 0.2);
}

.indicator {
    position: absolute;
    left: 16px;
}

.btn-text {
    text-align: center;
    flex: 1;
    margin-left: -16px;
}

/* 不同状态变体 */
.apple-btn-success {
    background: #478ecc;
}

.apple-btn-default {
    background: #515151;
}

.apple-btn-sensor {
    background: #2B2B2B;
}

.apple-btn-logic {
    background: #515151;
}

.apple-btn-loop {
    background: #1E1E1E;
}

/* 禁用状态 */
.apple-btn:disabled {
    background: linear-gradient(180deg, #C7C7CC 0%, #AEAEB2 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.apple-btn:disabled .indicator {
    background: rgba(255, 255, 255, 0.5);
}
